package com.base.xzw_lib.application

import android.app.Application
import android.graphics.Color
import android.graphics.Typeface
import android.view.Gravity
import com.google.android.material.snackbar.Snackbar
import androidx.core.graphics.toColorInt

/**
 * @ProjectName: My Application
 * @Package: com.base.xzw_lib.application
 * @ClassName: MyApp
 * @Description: 描述类的作用
 * @Author: xzw
 * @CreateDate: 2025/9/1 16:34
 * @UpdateUser: xzw：
 * @UpdateDate: 2025/9/1 16:34
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
class MyApp:Application() {
    override fun onCreate() {
        super.onCreate()
        SnackToast.init(
            duration = Snackbar.LENGTH_SHORT,
            backgroundColor = "#323232".toColorInt(),
            textColor = Color.WHITE,
            actionColor = "#FF4081".toColorInt(),
            gravity = Gravity.BOTTOM,
            margin = 16,
            cornerRadius = 99,
            typeface = Typeface.DEFAULT_BOLD
        )
    }
}